<%@ page import="musgo.Artista" %>



<div class="fieldcontain ${hasErrors(bean: artistaInstance, field: 'nombre', 'error')} required">
	<label for="nombre">
		<g:message code="artista.nombre.label" default="Nombre" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="nombre" maxlength="100" required="" value="${artistaInstance?.nombre}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: artistaInstance, field: 'email', 'error')} required">
	<label for="email">
		<g:message code="artista.email.label" default="Email" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="email" name="email" required="" value="${artistaInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: artistaInstance, field: 'ciudad', 'error')} required">
	<label for="ciudad">
		<g:message code="artista.ciudad.label" default="Ciudad" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="ciudad" required="" value="${artistaInstance?.ciudad}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: artistaInstance, field: 'nick', 'error')} required">
	<label for="nick">
		<g:message code="artista.nick.label" default="Nick" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="nick" required="" value="${artistaInstance?.nick}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: artistaInstance, field: 'password', 'error')} required">
	<label for="password">
		<g:message code="artista.password.label" default="Password" />
		<span class="required-indicator">*</span>
	</label>
	<g:textArea name="password" cols="40" rows="5" maxlength="256" required="" value="${artistaInstance?.password}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: artistaInstance, field: 'imagenperfil', 'error')} ">
	<label for="imagenperfil">
		<g:message code="artista.imagenperfil.label" default="Imagenperfil" />
		
	</label>
	<g:select id="imagenperfil" name="imagenperfil.id" from="${musgo.Imagen.list()}" optionKey="id" value="${artistaInstance?.imagenperfil?.id}" class="many-to-one" noSelection="['null': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: artistaInstance, field: 'historia', 'error')} ">
	<label for="historia">
		<g:message code="artista.historia.label" default="Historia" />
		
	</label>
	<g:textArea name="historia" cols="40" rows="5" maxlength="3000" value="${artistaInstance?.historia}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: artistaInstance, field: 'integrantes', 'error')} ">
	<label for="integrantes">
		<g:message code="artista.integrantes.label" default="Integrantes" />
		
	</label>
	<g:textArea name="integrantes" cols="40" rows="5" maxlength="1500" value="${artistaInstance?.integrantes}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: artistaInstance, field: 'estatus', 'error')} ">
	<label for="estatus">
		<g:message code="artista.estatus.label" default="Estatus" />
		
	</label>
	<g:checkBox name="estatus" value="${artistaInstance?.estatus}" />
</div>

<div class="fieldcontain ${hasErrors(bean: artistaInstance, field: 'fechainscripcion', 'error')} required">
	<label for="fechainscripcion">
		<g:message code="artista.fechainscripcion.label" default="Fechainscripcion" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="fechainscripcion" precision="day"  value="${artistaInstance?.fechainscripcion}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: artistaInstance, field: 'pais', 'error')} ">
	<label for="pais">
		<g:message code="artista.pais.label" default="Pais" />
		
	</label>
	<g:textField name="pais" value="${artistaInstance?.pais}"/>
</div>

